#include<stdio.h>
#include<math.h>
int main()
{
	double a,b,c,d;
	double x1,x2;
	scanf("%lf%lf%lf",&a,&b,&c);
	d=b*b-4*a*c;
	if(d>=0)
	{
		x1=(-b+sqrt(d))/(2*a);
		x2=(-b-sqrt(d))/(2*a);
		printf("x1=%.3lf x2=%.3lf\n",x1,x2);
	}
	if(d<0)
	{
		//x1=(-b)/(2*a)+(sqrt(-d)/(2*a));
		//x2=(-b)/(2*a)-(sqrt(-d)/(2*a));
		printf("x1=%.3lf+%.3lfi x2=%.3lf-%.3lfi",(-b)/(2*a),sqrt(-d)/(2*a),(-b)/(2*a),sqrt(-d)/(2*a));
	}
	return 0;
}
